package com.hjm;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author bule-lover
 * @date 2020/10/10
 * 启动程序
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableAsync
@EnableRetry
public class JhApplication extends SpringBootServletInitializer
{

    public static void main(String[] args)
    {
        SpringApplication.run(JhApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  LOVE启动成功   ლ(´ڡ`ლ)ﾞ  ");
    }

    @Override
    protected SpringApplicationBuilder configure(
            SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }
}
